package com.hikvision.rpq.sblearn.common;

/**
 * @author renpeiqian
 * @date 2021/8/12 9:28
 * @since
 */
public enum BusinessErrorCode implements IErrorCode {
    INFO_IS_EXIST("0xcde1001","专家信息已存在"),
    PUSH_INFO_ERROR("0xcde1002","推送专家信息异常"),
    SAVE_EXPERT_ERROR("0xcde1003","存储专家信息异常"),
    CHECK_EXPERT_ERROR("0xcde1004","专家号码校验异常"),
    INFO_NOT_EXIST("0xcde1005","核验失败，专家信息不存在，请先录入"),
    FETCH_PROJECT_ERROR("0xcde1006","项目信息查询异常"),
    ISSUED_PERMISSIONS_ERROR("0xcde1007","专家权限下发失败"),
    UPDATE_EXPERT_ERROR("0xcde1008","更新专家信息异常"),
    CHECK_EXPERTCODE_ERROR("0xcde1009","校验专家码异常"),
    QUERY_EXPERT_ERROR("0xcde1010","查询专家信息异常"),
    DELETE_EXPERT_ERROR("0xcde1011","删除专家信息异常"),
    LAUNCH_REDRAW_ERROR("0xcde1012","重新抽取专家失败"),
    PULL_EXPERT_EMPTY("0xcde1013","获取专家信息为空"),
    PULL_PROVINCIAL_ERROR("0xcde1014","拉取省级项目为空"),
    ;

    private String code;

    private String message;

    BusinessErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}